<{if $TITLE}><title><{$TITLE}></title><{/if}>
<{if $KEYWORDS}><meta name="keywords" content="<{$KEYWORDS}>" /><{/if}>
<{if $DESCRIPTION}><meta name="description" content="<{$DESCRIPTION}>" /><{/if}>
<{if $NOFOLLOW eq 'true'}><meta name="nofollow" content="nofollow" /><{/if}>
<{if $NOINDEX eq 'true'}><meta name="noindex" content="noindex" /><{/if}>
<link rel="icon" href="<{$env.app.favicon}>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<{$env.app.favicon}>/favicon.ico" type="image/x-icon" />
<{if !is_array($headers)}><{$headers|replace:"\n":' '}><{/if}>
<{if defined("DEBUG_CSS") && DEBUG_CSS}>
<{css src="base.css" app="b2c"}>
<{css src="theme.css" app="b2c"}>
<{else}>
<{css src="basic.min.css" app="b2c" pdir="css_mini"}>
<{/if}>
<{$extends_header}>
<{lang_script src="lang.js" app="b2c"}>
<{*lang_css src="lang.css" app="b2c" pdir="css_mini"*}>
<script>
var Shop = <{$shopDefine|default:'null'}>;
<{if $theme_color_href}>
window.addEvent('domready',function(){
    new Element('link',{href:'<{$theme_color_href}>',type:'text/css',rel:'stylesheet'}).inject(document.head,'bottom');
});
<{/if}>
</script>
<{if defined("DEBUG_JS") && DEBUG_JS}>
  <{script src="browserstore.js" app="b2c"}>
  <{script src="shoptools.js" app="b2c"}>
  <{script src="goodscupcake.js" app="b2c"}>
<{else}>
  <{script src="shop.min.js" app="b2c" pdir="js_mini"}>
<{/if}>
